home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
.net 2002 March
/
DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin
/
pc
/
PC Software
/
free_browsing
/
DavesQckSearchDbar3-14
/
dqsd.exe
/
searches
/
jdk.xml
< prev
next >
Wrap
Text File
|
2002-10-03
|
4KB
|
92 lines
<search function="jdk">
<name>JDK Javadoc Search</name>
<description>Search Sun's JDK Javadoc. Uses Google.
<div class="helpboxDescLabels">Switches:</div>
<table class="helpboxDescTable">
<tr><td>/1.4</td><td> - </td><td>Version 1.4 JDK (default)</td></tr>
<tr><td>/1.3</td><td> - </td><td>Version 1.3 JDK</td></tr>
<tr><td>/tutorial</td><td> - </td><td>Java language tutorial</td></tr>
<tr><td>/j2ee</td><td> - </td><td>J2EE documentation</td></tr>
<tr><td>/jls</td><td> - </td><td>Java language specification</td></tr>
<tr><td>/jvm</td><td> - </td><td>Java VM specification</td></tr>
<tr><td>/all</td><td> - </td><td>Search all of java.sun.com</td></tr>
</table>
<div class="helpboxDescLabels">Example:</div>
<table class="helpboxDescTable">
<tr><td>jdk HashMap /1.3</td></tr>
<tr><td>jdk catch /tutorial</td></tr>
</table>
</description>
<link>http://java.sun.com/j2se/1.4/docs/api/</link>
<category>Computers</category>
<contributor>David Bau</contributor>
<form name="jdkf" action="http://www.google.com/search" method="get">
<input type="hidden" name="q"/>
<input type="hidden" name="meta" value=""/>
<input type="hidden" name="lr" value="lang_en"/>
<input type="hidden" name="btnI" value="I'm Feeling Lucky"/>
</form>
<script><![CDATA[
// Uses Google I'm feeling lucky search
function jdk(q)
{
var defpage = 'http://java.sun.com/j2se/1.4/docs/api/';
var version = '"v1.4.0" inurl:api intitle:';
var args = parseArgs(q, "1.4, 1.3, all, tutorial, jls, jvm, j2ee");
if (q == "")
openSearchWindow(defpage);
else if (args.switches.length > 1)
nullArgs("jdk","?");
else
{
if (args.switches.length == 1)
{
switch (args.switches[0].name)
{
case "all":
version = ''; break;
case "tutorial":
defpage = 'http://java.sun.com/docs/books/tutorial/index.html';
version = 'inurl:nutsandbolts -inurl:reallybigindex -inurl:_keywords -inurl:TOC ';
break;
case "jls":
defpage = 'http://java.sun.com/docs/books/jls/second_edition/html/jTOC.doc.html';
version = 'inurl:jls inurl:second_edition -inurl:jTOC -inurl:jIX ';
break;
case "jvm":
defpage = 'http://java.sun.com/docs/books/vmspec/2nd-edition/html/VMSpecTOC.doc.html';
version = 'inurl:vmspec inurl:2nd -inurl:VMSpecTOC ';
break;
case "j2ee":
defpage = 'http://java.sun.com/j2ee/sdk_1.3/techdocs/api/index.html';
version = 'inurl:j2ee inurl:api intitle:';
break;
case "1.3":
defpage = 'http://java.sun.com/j2se/1.3/docs/api/';
version = '"v1.3.1" inurl:api intitle:';
break;
case "1.4":
default:
// this is the default already
}
if (args.q == "")
{
openSearchWindow(defpage);
return;
}
}
document.jdkf.q.value=version + args.q + ' site:java.sun.com';
submitForm(jdkf);
}
}
]]></script>
<copyright>
Copyright (c) 2002 David Bau
Distributed under the terms of the
GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
</copyright>
</search>